package com.kirk.cts.webservice.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <p> WebServiceUtil.java </p>
 *
 * @version 1.0.0
 * @Author kirkliu
 * @Date 2020-08-29 22:35
 * @Description WebService工具类
 */
public class WebServiceUtil {

    private static WebServiceUtil instance = new WebServiceUtil();

    private ApplicationContext wsCtx = null;

    public static WebServiceUtil getInstance() {
        return instance;
    }

    /**
     * @return the wsCtx
     */
    public ApplicationContext getWsCtx() {
        return wsCtx;
    }

    private WebServiceUtil() {
        wsCtx = new ClassPathXmlApplicationContext("spring/spring-cxf-client.xml");
    }

}